import request from '@/utils/Request.js';

//分页查询
export function getBorrowList(params) {
    return request.get('/admin/borrow/list',params);
}

// 归还资产
export function returnBorrow(id) {
    return request.put(`/admin/borrow/return/${id}`);
}

//导出数据
export function exportBorrow(params) {
    return request.downloadFile(`/admin/borrow/export`, params,'借用列表.xlsx');
}